#ifndef USER
#define USER
#include "string"

enum userlevel
{
    normuser,
    vip,
    supervip
};

class user
{
public:
    user();
    std::string name;
    bool match(std::string ID);
    std::string ID;
    std::string subID;
    int getpoint();
    bool gainpoint(int num);
    bool consumepoint();
    bool levelup();
    float getrate();
    userlevel getlevel();
    userlevel level;
    int points;
};

#endif